import { defineStore } from 'pinia'

export const useUserStore = defineStore('shop', {
    state: () => {
        return {
            list: [
                { id: '0', name: '手机', price: 2000 },
                { id: '1', name: '电脑', price: 8000 },
                { id: '2', name: '电视', price: 5000 },
                { id: '3', name: '平板', price: 3000 },
                { id: '4', name: '耳机', price: 1000 }
            ]
        }
    },
    getters: {},
    actions: {}
})